package com.qymerge.manage.base.dao;

import com.qymerge.manage.base.ro.CardRO;
import com.qymerge.manage.base.ro.OrganizationalStructureRO;
import com.qymerge.manage.core.bean.PageRequest;

import java.util.List;

/**
 *<p>Title: ICardDao</p>
 *<p>Description: 优惠券管理</p>
 *
 *@Author cong.zhang
 *@Version 1.0.0
 *@Date 2020/12/19
 *@Time 17:52
 */
public interface IOrganizationalStructureDao {

    List list(OrganizationalStructureRO ro, PageRequest pageRequest);

    int total(OrganizationalStructureRO ro);

    OrganizationalStructureRO findOne(Long id);

    List<OrganizationalStructureRO> findAll();

    List<OrganizationalStructureRO> findAll(OrganizationalStructureRO ro);

    int install(OrganizationalStructureRO ro);

    int update(OrganizationalStructureRO ro);

    int remove(List<Long> ids);

    int remove(Long id);

    boolean ifExists(Long id);

    List<OrganizationalStructureRO> findAllByParentId(Long id);

}
